//
//  BEBaseListFooterView.m
//  BabyElephant
//
//  Created by B. on 2023/7/28.
//  Copyright © 2023 G7. All rights reserved.
//

#import "BEBaseListFooterView.h"
#import "MainSectionModel.h"
@interface BEBaseListFooterView()

@property (weak, nonatomic) UILabel *lab;

@end


@implementation BEBaseListFooterView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self lab];
    }
    return self;
}


- (UILabel *)lab {
    if (!_lab) {
        UILabel *obj = [UILabel new];
        [self addSubview:_lab = obj];
        [obj mas_makeConstraints:^(MASConstraintMaker *make) {
            kMakeCenterXV(0);
            kMakeCenterYV(0);
        }];
        obj.font = U_font(14);
        obj.textColor = KLColor(@"#969799");
        obj.text = @"已加载全部数据";
    }
    return _lab;
}

- (void)setModel:(MainSectionModel *)model {
    [super setModel:model];
    
    [self lab];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
